package com.wtf.dsp.admin.model.dto;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Map;

/**
 * ClassName: SmpPageDTO
 * Description:
 * date: 2023/7/7 17:57
 *
 * @author linhuanyou
 * @version 1.0
 */
@Data
@ToString
public class ExecDTO {

    @NotBlank(message = "请输入命名空间")
    private String ns;

    @NotBlank(message = "请输入数据源")
    private String ds;

    @NotBlank(message = "请输入Mapper名称空间")
    private String mns;

    @NotBlank(message = "请输入SQL的ID")
    private String sqlId;

    private Map<String,Object> params;

    @NotNull(message = "请输入响应类型")
    private String sqlResponseMapper;

    private Integer page;

    private Integer limit;
}
